package com.durian.base.update.entity

object XUpdateCheckErrorCode{
//    没有网络
    const val NoNetwork = -1000
//    未知错误
    const val Unknown = -9999
}
object XUpdateDownloadErrorCode{
//    没有网络
    const val NoNetwork = -1000
//    下载文件路径为null
    const val DownloadApkFilePathError = -1001
//    未知错误
    const val Unknown = -999
}

class XUpdateException(
        val throwable: Throwable?,
        val errorCode: Int
){
    override fun toString(): String {
        return "[错误码：${errorCode}/错误信息：${throwable?.message}]"
    }
}